package service;

import java.util.List;

import dao.GoodsImgDao;
import entity.GoodsImg;

public class GoodsImgService {

	GoodsImgDao giDao = new GoodsImgDao();
	public void addGoodsImg(int goodId, List<GoodsImg> imgList) {
		giDao.addGoodsImg(goodId, imgList);
	}
	public List<GoodsImg> getImgByGoodId(int goodId) {
		return giDao.getImgByGoodId(goodId);
	}
	//根据商品id获取一张图片
	public List<GoodsImg> getOneImgByGoodId(int goodId) {
		return giDao.getOneImgByGoodId(goodId);
	}
}
